package com.junwell.util;

/**
 * @author Junwell
 * @date 2023/3/4 18:48
 */

/*
@Component
public class QuartzUtils {
    @Autowired
    JedisPool jedisPool;

    public void get() throws SchedulerException {
        Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();

        JobDetail job = JobBuilder.newJob(RedisJob.class)//加载任务类,与任务类
                .withIdentity("job1", "group")
                .usingJobData("message","打印日志")
                .build();


        CronTrigger trigger= TriggerBuilder.newTrigger()
                .withIdentity("trigger1", "group")
                .startNow()//马上启动触发器
                .withSchedule(CronScheduleBuilder.cronSchedule("0/5 * * * * ? "))
                .build();

        scheduler.scheduleJob(job, trigger);
        scheduler.start();

    }
}
*/
